import json
from database_lib.testdb import TestData


class Ios(object):
    def __init__(self):
        self.service = 'ios'

    #  首页
    def init_hao_help_index_data(self):
        TestData().add(self.service, 'haoHelperIndex', 'post')

    def init_business_manage_data(self):
        TestData().add(self.service, 'businessManage', 'post', req_json=json.dumps(dict(token='')))

    def main(self):
        for method in dir(self.__class__):
            if method.startswith('init'):
                eval('self.' + method)()
